5 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
6 PHPUnit_TextUI_Command::main();
9 PHPUnit %s by Sebastian Bergmann.
11 Usage: phpunit [switches] UnitTest [UnitTest.php]
12 phpunit [switches] <directory>
14 --log-graphviz <file> Log test execution in GraphViz markup.
15 --log-json <file> Log test execution in JSON format.
16 --log-tap <file> Log test execution in TAP format to file.
17 --log-xml <file> Log test execution in XML format to file.
18 --log-metrics <file> Write metrics report in XML format.
19 --log-pmd <file> Write violations report in PMD XML format.
21 --coverage-html <dir> Generate code coverage report in HTML format.
22 --coverage-clover <file> Write code coverage data in Clover XML format.
23 --coverage-source <dir> Write code coverage / source data in XML format.
25 --test-db-dsn <dsn> DSN for the test database.
26 --test-db-log-rev <rev> Revision information for database logging.
27 --test-db-prefix ... Prefix that should be stripped from filenames.
28 --test-db-log-info ... Additional information for database logging.
30 --story-html <file> Write Story/BDD results in HTML format to file.
31 --story-text <file> Write Story/BDD results in Text format to file.
33 --testdox-html <file> Write agile documentation in HTML format to file.
34 --testdox-text <file> Write agile documentation in Text format to file.
36 --filter <pattern> Filter which tests to run.
37 --group ... Only runs tests from the specified group(s).
38 --exclude-group ... Exclude tests from the specified group(s).
39 --list-groups List available test groups.
41 --loader <loader> TestSuiteLoader implementation to use.
42 --repeat <times> Runs the test(s) repeatedly.
44 --story Report test execution progress in Story/BDD format.
45 --tap Report test execution progress in TAP format.
46 --testdox Report test execution progress in TestDox format.
48 --no-syntax-check Disable syntax check of test source files.
49 --stop-on-failure Stop execution upon first error or failure.
50 --colors Use colors in output.
51 --verbose Output more verbose information.
52 --wait Waits for a keystroke after each test.
54 --skeleton-class Generate Unit class for UnitTest in UnitTest.php.
55 --skeleton-test Generate UnitTest class for Unit in Unit.php.
57 --help Prints this usage information.
58 --version Prints the version and exits.
60 --bootstrap <file> A "bootstrap" PHP file that is run before the tests.
61 --configuration <file> Read configuration from XML file.
62 -d key[=value] Sets a php.ini value.